package demo3;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 86138
 * Date: 2024-07-08
 * Time: 17:46
 */
public class Son extends Father{

    static {
        System.out.println("子类静态代码块");
    }

    {
        System.out.println("子类实例代码块");
    }

    public Son(String name,int age){
        super(name,age);
        System.out.println("子类构造方法");
    }
}
